package com.nmf.dao.gen;

import com.nmf.dao.gen.bean.BizCompCollege;
import com.nmf.dao.gen.bean.BizCompCollegeExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface BizCompCollegeMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @SelectProvider(type=BizCompCollegeSqlProvider.class, method="countByExample")
    long countByExample(BizCompCollegeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @DeleteProvider(type=BizCompCollegeSqlProvider.class, method="deleteByExample")
    int deleteByExample(BizCompCollegeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @Delete({
        "delete from biz_comp_college",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @Insert({
        "insert into biz_comp_college (id, college_id, ",
        "college_name, company_id, ",
        "company_name, is_checked, ",
        "type, create_date, ",
        "update_date)",
        "values (#{id,jdbcType=VARCHAR}, #{collegeId,jdbcType=VARCHAR}, ",
        "#{collegeName,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, ",
        "#{companyName,jdbcType=VARCHAR}, #{isChecked,jdbcType=SMALLINT}, ",
        "#{type,jdbcType=SMALLINT}, #{createDate,jdbcType=TIMESTAMP}, ",
        "#{updateDate,jdbcType=TIMESTAMP})"
    })
    int insert(BizCompCollege record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @InsertProvider(type=BizCompCollegeSqlProvider.class, method="insertSelective")
    int insertSelective(BizCompCollege record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @SelectProvider(type=BizCompCollegeSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="college_id", property="collegeId", jdbcType=JdbcType.VARCHAR),
        @Result(column="college_name", property="collegeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_id", property="companyId", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_checked", property="isChecked", jdbcType=JdbcType.SMALLINT),
        @Result(column="type", property="type", jdbcType=JdbcType.SMALLINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    List<BizCompCollege> selectByExample(BizCompCollegeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @Select({
        "select",
        "id, college_id, college_name, company_id, company_name, is_checked, type, create_date, ",
        "update_date",
        "from biz_comp_college",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="college_id", property="collegeId", jdbcType=JdbcType.VARCHAR),
        @Result(column="college_name", property="collegeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_id", property="companyId", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_checked", property="isChecked", jdbcType=JdbcType.SMALLINT),
        @Result(column="type", property="type", jdbcType=JdbcType.SMALLINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    BizCompCollege selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @UpdateProvider(type=BizCompCollegeSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") BizCompCollege record, @Param("example") BizCompCollegeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @UpdateProvider(type=BizCompCollegeSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") BizCompCollege record, @Param("example") BizCompCollegeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @UpdateProvider(type=BizCompCollegeSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(BizCompCollege record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_comp_college
     */
    @Update({
        "update biz_comp_college",
        "set college_id = #{collegeId,jdbcType=VARCHAR},",
          "college_name = #{collegeName,jdbcType=VARCHAR},",
          "company_id = #{companyId,jdbcType=VARCHAR},",
          "company_name = #{companyName,jdbcType=VARCHAR},",
          "is_checked = #{isChecked,jdbcType=SMALLINT},",
          "type = #{type,jdbcType=SMALLINT},",
          "create_date = #{createDate,jdbcType=TIMESTAMP},",
          "update_date = #{updateDate,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(BizCompCollege record);
}